package com.techfansy.photo;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;

/**
 * 头像图片选择框的浮层
 * 
 * @author yfren
 *
 */
public class FloatDrawable extends Drawable {

	private Paint mLinePaint = new Paint();
	{
		mLinePaint.setColor(Color.WHITE);
		mLinePaint.setStrokeWidth(4);
		mLinePaint.setStyle(Paint.Style.STROKE);
		mLinePaint.setAntiAlias(true);
		// mLinePaint.setColor(Color.WHITE);
//		mLinePaint.setColor(0xFF56D0BA);
	}

	@Override
	public void draw(Canvas canvas) {
		// 方框
		canvas.drawRect(getBounds(), mLinePaint);
	}

	@Override
	public void setAlpha(int alpha) {
		
	}

	@Override
	public void setColorFilter(ColorFilter cf) {
		
	}

	@Override
	public int getOpacity() {
		return 0;
	}


}
